#include "AnimObject.h"


void AnimObject::AddFrame(FrameObject *newFrame)
{
	frames->Add(newFrame);
}

String* AnimObject::ToString()
{
	return ArrayToString(ani->name);
}

void AnimObject::UpdateFrame(int index, FrameObject *newFrame)
{
	if(frames->Item[index])
		frames->Item[index] = newFrame;
}

FrameObject *AnimObject::GetFrame(int index)
{
	if(frames->Item[index])
		return (FrameObject*)frames->Item[index];

	return NULL;
}

void AnimObject::SetAni(TGNAni *newAni)
{
	ani = newAni;
}

TGNAni *AnimObject::GetAni()
{
		return ani;
}